export namespace Test {
    let time = 0
    export let count = 0

    export function test(func: Function, name?: string) {
        let i = count
        time = Date.now()
        while (i--) {
            func()
        }
        console.log(`[${name ? name : "测试"}] ${count}次 用时：${Date.now() - time}ms`);
    }
}